package com.forclass;

public class Books {
//    public Books(){
//
//    }
//    protected  Books(String title){
//
//    }
    private String title,author;
    private double price;
//    Books(String title,String author){}
    public Books(String title,String author,double price){
        this.title = title;
        this.author = author;
        this.price = price;
    }

    @Override
    public String toString() {
        return "Books{" +
                "title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                '}';
    }
}
